#pragma once

#define VERTICAL 240
#define HORIZONTAL 352
#define SCALE 2

// Initiates DirectX

HRESULT D3DInit(HWND hWnd);

// Clears DirectX

HRESULT ClearD3D();

HRESULT Render(HWND hWnd);

HRESULT GetPictureSizeString(DWORD Width, DWORD Heigth, LPWSTR Output);
HRESULT GetValueString(LPWSTR String, DWORD Start, DWORD Main, LONG Exp, DWORD *Len);
HRESULT GetValueString(LPWSTR String, DWORD Start, double Value, DWORD Presicion, DWORD *Len);
HRESULT GetWindowString(DWORD Size, LPWSTR Output);
HRESULT SetFileParams(LPCWSTR FullPath);

HRESULT GetColors (LPDIRECT3DSURFACE9 surf, DWORD* Matrix);

HRESULT SetColors (LPDIRECT3DSURFACE9 surf, DWORD* Matrix);